import {createRouter,createWebHistory} from 'vue-router'
const router = createRouter({
    history: createWebHistory(),
    routes:[
        // 使用模块加载，在生产环境（build）可以实现按需加载,提高性能
        {path:'/',name: 'home',component: () => import('@/views/Home.vue')},
        {path:'/about',name: 'about',component: () => import('@/views/About.vue')},
        {path:'/article',name: 'article',component: () => import('@/views/Article.vue')}
    ]
});
export default router;